home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ETO Development Tools 4
/
ETO Development Tools 4.iso
/
Essentials
/
C++ A'Link Files
/
1989
/
0007-Re Multiple base ope-Nov89
< prev
next >
Wrap
Text File
|
1991-03-06
|
1KB
|
37 lines
Item forwarded by CPLUS.ADMIN to CP.ARCHIVES
Item 2679083 29-Nov-89 16:02
From: ROSENSTEIN1 Rosenstein, Larry
To: CPLUS.APPLE$ C++ Interest List--Apple Employees
CPLUS.DEV$ C++ Interest List--Developers
Sub: RE>Multiple base operator
Attn: C++ Apple
Attn: C++ Public
SentBy: Larry Rosenstein
Date 11/29/89
Subject RE>Multiple base operator n
From Larry Rosenstein
To C++ Apple
C++ Public
Reply to: RE>Multiple base operator new
First, I think operator new is a static member function, so it isn't
inherited. So there is no ambiguity in your example. (Also, you don't show
class B as implementing operator new.)
If you were talking about a normal member function (say Foo()) and both A and
B declared Foo(), then you would have an ambiguity. The reference manual
refers to the fact that you resolve the ambiguity by declaring C::Foo() and
within that function explicitly calling A::Foo() and/or B::Foo(). In other
words, you are responsible for resolving the ambiguity by explicitly coding
calls to the inherited methods.
Larry Rosenstein